Output=function(){
  var self=this;
  
  self.canvas = $('#canvas')[0];
  self.ctx = canvas.getContext('2d');

  //it initializes (clears) the board
  self.clear=function(){
    //self.ctx.
    //Log("output.clear");
    return self;
  }
  self.drawTrack=function(numTask){
    Log("output.drawTrack");
    //Log(numTask);
    return self;
  }
  self.drawInit=function(taskState){
    Log("output.drawInit("+taskState.id+"): "+taskState.init);
    //Log(taskState);
    return self;
  }
  self.drawTaskState=function(taskState){
    Log("output.drawTaskState("+taskState.id+"): "+taskState.state);
    return self;
  }
}

output=new Output();


